.class public Lcom/netease/newsreader/activity/CommentWholeFloorActivity;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "CommentWholeFloorActivity.java"

# interfaces
.implements Lcom/netease/newsreader/view/FloorsView$FloorBinder;


# instance fields
.field private mFloorData:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private mLayoutInflater:Landroid/view/LayoutInflater;

.field private mTextSize:F


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 26
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    return-void
.end method

.method private init()V
    .locals 9

    .prologue
    .line 70
    const v7, 0x7f0c0008

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 71
    .local v5, title:Landroid/widget/TextView;
    const v7, 0x7f0b001c

    invoke-virtual {v5, v7}, Landroid/widget/TextView;->setText(I)V

    .line 73
    const v7, 0x7f0c00fe

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Lcom/netease/newsreader/view/FloorsView;

    .line 74
    .local v2, floors:Lcom/netease/newsreader/view/FloorsView;
    invoke-virtual {v2, p0}, Lcom/netease/newsreader/view/FloorsView;->setFloorBinder(Lcom/netease/newsreader/view/FloorsView$FloorBinder;)V

    .line 75
    const v7, 0x7f0c00fc

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 76
    .local v6, username:Landroid/widget/TextView;
    const v7, 0x7f0c00fd

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 77
    .local v1, date:Landroid/widget/TextView;
    const v7, 0x7f0c00ff

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 78
    .local v0, content:Landroid/widget/TextView;
    const v7, 0x7f0c0100

    invoke-virtual {p0, v7}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 80
    .local v4, orig:Landroid/widget/TextView;
    iget-object v7, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    const-string v8, "fn"

    invoke-static {v7, v8}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-virtual {v6, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 81
    iget-object v7, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    .line 82
    const-string v8, "bd"

    .line 81
    invoke-static {v7, v8}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map;

    .line 83
    .local v3, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-interface {v3}, Ljava/util/Map;->size()I

    move-result v7

    invoke-static {v7}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v7

    invoke-static {v3, v7}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v3

    .end local v3           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v3, Ljava/util/Map;

    .line 85
    .restart local v3       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v7, "t"

    invoke-static {v3, v7}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-static {v7}, Lcom/netease/newsreader/util/StringUtil;->getDate(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v1, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 86
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    const v8, 0x7f0b00ad

    invoke-virtual {p0, v8}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->getText(I)Ljava/lang/CharSequence;

    move-result-object v8

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v8

    .line 87
    const-string v7, "s"

    invoke-static {v3, v7}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 86
    invoke-virtual {v4, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 88
    const-string v7, "b"

    invoke-static {v3, v7}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Ljava/lang/String;

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 89
    iget v7, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mTextSize:F

    invoke-virtual {v0, v7}, Landroid/widget/TextView;->setTextSize(F)V

    .line 90
    iget-object v7, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    invoke-virtual {v2, v7}, Lcom/netease/newsreader/view/FloorsView;->setFloorsValue(Ljava/util/Map;)V

    .line 92
    return-void
.end method

.method private verifyIntnet(Landroid/content/Intent;)Z
    .locals 5
    .parameter "intent"

    .prologue
    const/4 v3, 0x0

    .line 51
    const-string v4, "floorData"

    invoke-virtual {p1, v4}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 52
    .local v2, jsonStr:Ljava/lang/String;
    invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 66
    :cond_0
    :goto_0
    return v3

    .line 55
    :cond_1
    const/4 v1, 0x0

    .line 57
    .local v1, json:Lorg/json/JSONObject;
    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    .end local v1           #json:Lorg/json/JSONObject;
    invoke-direct {v1, v2}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 62
    .restart local v1       #json:Lorg/json/JSONObject;
    invoke-static {v1}, Lcom/netease/newsreader/util/ModelUtils;->json2Map(Lorg/json/JSONObject;)Ljava/util/Map;

    move-result-object v4

    iput-object v4, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    .line 63
    iget-object v4, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    if-eqz v4, :cond_0

    iget-object v4, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mFloorData:Ljava/util/Map;

    invoke-interface {v4}, Ljava/util/Map;->size()I

    move-result v4

    if-eqz v4, :cond_0

    .line 66
    const/4 v3, 0x1

    goto :goto_0

    .line 58
    .end local v1           #json:Lorg/json/JSONObject;
    :catch_0
    move-exception v0

    .line 59
    .local v0, e:Ljava/lang/Exception;
    goto :goto_0
.end method


# virtual methods
.method public bindFloor(Landroid/view/ViewGroup;ILjava/lang/Object;I)V
    .locals 8
    .parameter "floor"
    .parameter "position"
    .parameter "data"
    .parameter "floorCount"

    .prologue
    const/4 v5, 0x0

    .line 96
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v6

    const v7, 0x7f02001a

    invoke-virtual {v6, p0, p1, v7}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/content/Context;Landroid/view/View;I)V

    .line 99
    check-cast p3, Ljava/util/Map;

    .end local p3
    const-string v6, "bd"

    .line 98
    invoke-static {p3, v6}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map;

    .line 101
    .local v2, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v2, :cond_0

    invoke-interface {v2}, Ljava/util/Map;->size()I

    move-result v6

    const/4 v7, 0x1

    if-gt v6, v7, :cond_1

    :cond_0
    move v1, v5

    .line 102
    .local v1, count:I
    :goto_0
    const v6, 0x7f0c00fa

    invoke-virtual {p1, v6}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v6

    invoke-virtual {v6, v5}, Landroid/view/View;->setVisibility(I)V

    .line 103
    const v5, 0x7f0c00fb

    invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v5

    const/16 v6, 0x8

    invoke-virtual {v5, v6}, Landroid/view/View;->setVisibility(I)V

    .line 104
    const v5, 0x7f0c0056

    invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 105
    .local v4, username:Landroid/widget/TextView;
    const v5, 0x7f0c0057

    invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 106
    .local v3, num:Landroid/widget/TextView;
    const v5, 0x7f0c0058

    invoke-virtual {p1, v5}, Landroid/view/ViewGroup;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 107
    .local v0, content:Landroid/widget/TextView;
    add-int/lit8 v5, p2, 0x1

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-static {v2, v5}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v2

    .end local v2           #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    check-cast v2, Ljava/util/Map;

    .line 108
    .restart local v2       #map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v5, "f"

    invoke-static {v2, v5}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    invoke-virtual {v4, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 110
    add-int/lit8 v5, p2, 0x1

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 111
    const-string v5, "b"

    invoke-static {v2, v5}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/lang/String;

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 112
    iget v5, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mTextSize:F

    invoke-virtual {v0, v5}, Landroid/widget/TextView;->setTextSize(F)V

    .line 113
    return-void

    .line 101
    .end local v0           #content:Landroid/widget/TextView;
    .end local v1           #count:I
    .end local v3           #num:Landroid/widget/TextView;
    .end local v4           #username:Landroid/widget/TextView;
    :cond_1
    invoke-interface {v2}, Ljava/util/Map;->size()I

    move-result v6

    add-int/lit8 v1, v6, -0x1

    goto :goto_0
.end method

.method public createFloorContentView(Ljava/lang/Object;)Landroid/view/View;
    .locals 4
    .parameter "datas"

    .prologue
    .line 117
    iget-object v1, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mLayoutInflater:Landroid/view/LayoutInflater;

    const v2, 0x7f03003f

    const/4 v3, 0x0

    invoke-virtual {v1, v2, v3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 118
    .local v0, floor:Landroid/view/View;
    return-object v0
.end method

.method public getFloorCount(Ljava/lang/Object;)I
    .locals 4
    .parameter "data"

    .prologue
    .line 124
    check-cast p1, Ljava/util/Map;

    .end local p1
    const-string v2, "bd"

    .line 123
    invoke-static {p1, v2}, Lcom/netease/newsreader/util/ModelUtils;->getValue(Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;

    .line 126
    .local v0, map:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    if-eqz v0, :cond_0

    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v2

    const/4 v3, 0x1

    if-gt v2, v3, :cond_1

    :cond_0
    const/4 v1, 0x0

    .line 127
    .local v1, size:I
    :goto_0
    return v1

    .line 126
    .end local v1           #size:I
    :cond_1
    invoke-interface {v0}, Ljava/util/Map;->size()I

    move-result v2

    add-int/lit8 v1, v2, -0x1

    goto :goto_0
.end method

.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 131
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->finish()V

    .line 132
    return-void
.end method

.method public onApplyTheme()V
    .locals 3

    .prologue
    .line 136
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 138
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 139
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f0c0008

    const v2, 0x7f080025

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 140
    const v1, 0x7f0c006f

    const v2, 0x7f020089

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 141
    const v1, 0x7f0c0007

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 142
    const v1, 0x7f0c0059

    const v2, 0x7f080029

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/app/Activity;II)V

    .line 144
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3
    .parameter "savedInstanceState"

    .prologue
    .line 36
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 38
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->verifyIntnet(Landroid/content/Intent;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 39
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->finish()V

    .line 48
    :goto_0
    return-void

    .line 42
    :cond_0
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->requestWindowFeature(I)Z

    .line 43
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    iput-object v1, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mLayoutInflater:Landroid/view/LayoutInflater;

    .line 44
    const v1, 0x7f030080

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->setContentView(I)V

    .line 45
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    .line 46
    .local v0, sp:Landroid/content/SharedPreferences;
    const-string v1, "currentSizeId"

    const/4 v2, 0x2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v1

    invoke-static {v1}, Lcom/netease/newsreader/activity/DetailPage;->getTextSize(I)F

    move-result v1

    iput v1, p0, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->mTextSize:F

    .line 47
    invoke-direct {p0}, Lcom/netease/newsreader/activity/CommentWholeFloorActivity;->init()V

    goto :goto_0
.end method
